Component({
  data: {
    "color": "#b5b5b5",
    "selectedColor": "#fa8582",
    "selected": null,
    "list": [
      {
        "pagePath": "/pages/index/index",
        "text": "我的拼车",
        "imgSrc":"order.png"
      },
      {
        "pagePath": "/pages/market/market",
        "text": "拼车广场",
        "class": "fa fa-windows",
        "imgSrc":"market.png"
      },
      {
        "pagePath": "/pages/user/user",
        "text": "个人中心",
        "class": "fa fa-user-circle",
        "imgSrc":"user.png"
      }
    ],
  },

  methods: {
    switchTab(e) {
      const data = e.currentTarget.dataset
      const url = data.path
      wx.switchTab({ url })
    }
  }
})